package weifei.wx.community.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


@Accessors(chain = true)
@Data(staticConstructor = "create")
@EqualsAndHashCode(callSuper = true)
@Table("user")
public class User extends Model<User>
{
    @Id(keyType = KeyType.Auto)
    private Long id;
    private String wxOpenid;
    private String nickname;

    @Column(onInsertValue = "now()")
    private Date registerTime;

    private String fullName;
    private String gender;

    private String school;
    private String studentId;
    private Integer grade;
    private String department;
    private String major;
    private String theClass;

    public User() {}
}



